/**
 * 
 */
package de.cbf.cam.map2d.shapes;

import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;

/**
 * @author Stefan Alter
 *
 */
public abstract class Shape {
	protected Point position = new Point(0,0);
	
	public Shape(Point position) {		
		this.position = position;
	}
	
	public Shape(int x, int y) {		
		this.position = new Point(x,y);
	}

	public abstract void drawObject(GC gc,Rectangle clientArea);
	public abstract void drawCollisionFrame(GC gc,Rectangle clientArea);
	
	public Point getPosition() {
		return position;
	}

	public void setPosition(Point position) {
		this.position = position;
	} 
}
